/**
 * MConsole.js
 * @Author ---- CJY
 * @Date ------ 2016/09/03
 */

#MConsole {
	position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 85%;
    background: rgba(255, 255, 255, .85);
    color: #222;
    z-index: 99999;
    outline: 0;
    display: none;
    font-size: 12px;
    border: solid 2px rgba(0, 0, 0, .7);
    border-right-width: 0px;
    -webkit-border-radius: 0px;
            border-radius: 0px;
}

#MConsole-Log-Container {
	position: absolute;
    top: 40px;
    bottom: 30px;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
}
#MConsole-Log-Container::-webkit-scrollbar { width: 2px; background-color: rgba(0, 0, 0, .7);}
#MConsole-Log-Container::-webkit-scrollbar-thumb { background-color: orange; }

#MConsole-Run {
	padding: 5px 0;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 30px;
	z-index: 100002;
	border-top: solid 2px rgba(0, 0, 0, .7);
	border-right: solid 2px rgba(0, 0, 0, .7);
	overflow: hidden;
}

#MConsole-Run-Btn {
	background-color: rgba(0, 0, 0, .7);
	border: 0;
	outline: 0;
	height: 100%;
	width: 50px;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 100004;
	color: #FFF;
}

#MConsole-Run button:active {
	background-color: rgba(0, 0, 0, .3);
}

#MConsole-Run input {
	background-color: rgba(255, 255, 255, .85);
	border: 0;
	outline: 0;
	height: 100%;
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	padding-left: 55px;
	padding-right: 65px;
	z-index: 100003;
}

#MConsole-Title {
	line-height: 0;
    padding: 19px 0;
	color: #F2F2F2;
	font-size: 20px;
	font-weight: 600;
	width: 100%;
	padding-left: 22px;
	background-color: rgba(0, 0, 0, .7);
	border-bottom: solid 2px rgba(0, 0, 0, .7);
	border-right: solid 2px rgba(0, 0, 0, .7);
}

#MConsoleButton {
	position: fixed;
	top: 10px;
	right: 10px;
	width: 30px;
	background: rgba(0, 0, 0, .3);
	color: #FFF;
	z-index: 100000;
	outline: 0;
    border: outset;
}

.MConsole-Log {
	position: relative;
	padding: 1px 0;
	border-bottom: solid 1px #E6E6E6;
	word-wrap: break-word;
	max-height: 30%;
	overflow: hidden;
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
            align-items: flex-start;
}

.MConsole-Log.MConsole-Error {
	color: #EB3941 !important;
	background-color: #FFF0F0 !important;
	font-weight: 600;
}

.MConsole-Log.MConsole-Warn {
	background-color: #FFFBE6 !important;
	font-weight: 600;
}

.MConsole-Log.active {
	background-color: #FFF;
	overflow-y: scroll;
	overflow-x: hidden;
	-webkit-box-shadow: inset 0 0 10px #999;
	        box-shadow: inset 0 0 10px #999;
	border-bottom: solid 1px #ccc;
}

.MConsole-Log.active::-webkit-scrollbar { width: 3px; background-color: transparent;}
.MConsole-Log.active::-webkit-scrollbar-thumb { background-color: #999; }

.MConsole-Log-Content {
    flex: 1;
    overflow-x: hidden;
    line-height: 16px;
    min-height: 16px;
}

.MConsole-Log.active.MConsole-Error {
	-webkit-box-shadow: inset 0 0 10px #EB3941;
	        box-shadow: inset 0 0 10px #EB3941;
	border-bottom: solid 1px #F8B0B2;
}

.MConsole-Log.active.MConsole-Info {
	-webkit-box-shadow: inset 0 0 10px #2A53CD;
	        box-shadow: inset 0 0 10px #2A53CD;
	border-bottom: solid 1px #C0CBEB;
}

.MConsole-Log-Count {
    margin: 0 1px;
    padding: 0 5px;
    min-height: 16px;
    min-width: 16px;
    -webkit-border-radius: 3px;
            border-radius: 3px;
    color: #FFF;
    opacity: 0;
    background-color: #8097BD;
    -webkit-transform: scale(.8);
            transform: scale(.8);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
}
.MConsole-Log-Count.show {
	opacity: 1;
}

.MConsole-Log.active .MConsole-Line-Info {
	opacity: .8;
}
.MConsole-Line-Info {
	opacity: 0;
	position: absolute;
	top: 0px;
	right: 0px;
	max-height: 100%;
	z-index: 100001;
	color: #FFF;
	font-size: 12px;
	padding: 2px 5px;
	background-color: rgba(0, 0, 0, .7);
}

.MConsole-Error-Line-Info {
	background-color: #EB3941;
}

.MConsole-Info-Line-Info {
	background-color: #2A53CD;
}

.MConsole-Log-Count.MConsole-Info-Icon {
	background-color: #2A53CD;
}

.MConsole-Log-Count.MConsole-Warn-Icon {
    background-color: #E3B000;
}

.MConsole-Log-Count.MConsole-Error-Icon {
	background-color: #EB3941;
}

*[class^='MConsole-Type-'] {
	margin-right: 3px;
}

.MConsole-Type-Number, .MConsole-Type-Boolean {
	color: #1C00CF;
}

.MConsole-Type-Undefined {
	color: #888;
}

.MConsole-Run-Right {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	z-index: 100004;
	height: 100%;
}
.MConsole-Run-Right::after {
	content: '';
	display: block;
	width: 2px;
	height: 100%;
	background-color: rgba(0, 0, 0, .15);
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
}

.MConsole-Run-Right button {
    width: 30px;
    height: 100%;
    background: rgba(0, 0, 0, .7);
}

#MConsolt-Run-Prev::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-bottom: 10px solid rgba(255, 255, 255, 0.3);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    margin: auto;
}

#MConsolt-Run-Next::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid rgba(255, 255, 255, 0.3);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    margin: auto;
}

.MConsole-Run-Right button {
	border: 0;
	outline: 0;
}
